import * as mars3d from "mars3d";

export function addLayer(map,url,layername) {
    const config = {
      url:url,
      layers: layername,
      parameters: {
        VERSION: "1.1.1",
        transparent: true,
        format: "image/png"
      },
      crs:'EPSG:4326',
    };
    let wmsLayer = new mars3d.layer.WmsLayer(config)
    map.addLayer(wmsLayer);
  };